package com.bank.bank.customer.client;

import com.bank.bank.common.base.response.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

//访问account-service服务负载均衡
@FeignClient(value = "account-service")
public interface AccountClient {
    @GetMapping("/api/accounts/list")
    public JsonResult listAccounts(@RequestParam("customerId")Integer customerId);
    //http://url?customerId=1
}
